<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <meta content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
          name="viewport"/>
    <title>首页</title>
    <link rel="stylesheet" th:href="@{/css/index.css}" type="text/css">
</head>
<body>
<div id="container">
    <button class="light-btn" style="margin-top: 150px" v-on:click="oneKeySubmitOrderPage()">一键下单</button>
    <button class="light-btn" v-on:click="timingSubmitOrderPage()">定时抢购</button>
    <button class="light-btn" v-on:click="submitCookiePage()">更新cookie</button>
</div>
<script th:src="@{/js/vue.min.js}"></script>
<script>
    new Vue({
        el: "#container",
        data: {},
        methods: {
            oneKeySubmitOrderPage() {
                window.location.href = "/order/oneKeySubmitOrderPage"
            },
            timingSubmitOrderPage() {
                window.location.href = "/order/timingSubmitOrderPage"
            },
            submitCookiePage() {
                window.location.href = "/cookie/submitCookiePage"
            },
        }
    });
</script>
</body>
</html>